package cn.com.oidreams.common.enums;


import lombok.Getter;

/***
 ** @category 通用枚举...
 ** @author qing.yunhui
 ** @email: 280672161@qq.com
 ** @createTime: 2019/5/21  18:07
 **/
public enum  YesOrNoEnum implements ICommonEnum {

    NO("0","否","禁用"),
    YES("1","是","启用");
    @Getter
    private final String code;
    @Getter
    private final String value;
    @Getter
    private final String desc;
    YesOrNoEnum(String code, String value,String desc) {
        this.code = code;
        this.value = value;
        this.desc=desc;
    }
    @Override
    public Integer getKey() {
        return Integer.parseInt(code);
    }

}
